#include <iostream>

using namespace std;

const double esp = 1e-12;

int T;
double n;

int main()
{
  cin >> T;
  while(T--)
  {
    cin >> n;
    double l = 0, r = 1e5 + 10;
    while(l + esp < r)
    {
      double mid = (l + r) / 2;
      if(mid * mid * mid > n) r = mid;
      else l = mid;
    }
    printf("%.3lf\n", l);
  }
  return 0;
}
